<!DOCTYPE html>
<html>
	<head>
		<title>
			test
		</title>
		<meta name="viewport" content="width=device-width, initial-scale=1"/>
        <!-- them --->
        <link rel="stylesheet" href="<?php echo base_url('temp/mobile/css/themtest.min.css');?>" />        
        <!--end them-->
		<link rel="stylesheet" href="<?php echo base_url('temp/mobile/css/mstyle.css');?>" />
		<script src="<?php echo base_url('temp/mobile/js/jquery.js');?>"></script>
		<script src="<?php echo base_url('temp/mobile/js/mjs.js');?>"></script>
	</head>
	<body>
		<div data-role="page" data-theme="a" id="login">
			<div data-role="header" data-theme="b">
			
            <div data-role="navbar">
                <ul>
                    <li><a data-ajax="false" href="<?php echo base_url('mobile');?>" <?php if($this->uri->segment(2)=='account'|!$this->uri->segment(2,0))echo 'class="ui-btn-active"'?> data-icon="home">Acount</a></li>
                    <li><a href="<?php echo base_url('mobile/banner');?>" <?php if($this->uri->segment(2)=='banner')echo 'class="ui-btn-active"'?> data-icon="comment">Offers</a></li>
                    <li><a href="<?php echo base_url('mobile/wall');?>" <?php if($this->uri->segment(2)=='wall')echo 'class="ui-btn-active"'?> data-icon="grid">Offer Wall</a></li>
                    <li><a href="<?php echo base_url('mobile/payout');?>" <?php if($this->uri->segment(2)=='payout')echo 'class="ui-btn-active"'?> data-icon="shop">Reward</a></li>                    
                </ul>
            </div><!-- /navbar -->
            
			</div>
			<div role="main" class="ui-content">				
                <!-- content----------------------->
                <?php if(!empty($content)){echo $content;}?>
                <!--end content------------------->                
			</div>
			<div data-role="footer" <?php echo $this->uri->segment(2)=='history'?'':'data-theme="c"' ?> data-position="fixed">				
                <?php
                if($this->uri->segment(2)=='history'){ ?>
                    
                    <div data-role="navbar">
                        <ul>
                            <li><a data-ajax="false" href="<?php echo base_url('mobile/history');?>" <?php if(!$this->uri->segment(3,0))echo 'class="ui-btn-active"'?> data-icon="calendar">Point History</a></li>
                            <li><a href="<?php echo base_url('mobile/history/1');?>" <?php if($this->uri->segment(3))echo 'class="ui-btn-active"'?> data-icon="calendar">Withdraw History</a></li>
                            
                        </ul>
                    </div><!-- /navbar -->
                
                <?php
                }else{
                    echo '
                    <h4></h4>
                    ';
                }
                ?>
			</div>
		</div>        
       
	</body>
<style>
h1{text-align:center;}
p.error{color:red !important}
</style>
</html>